package br.com.ordersys.framework.xml;

import java.math.BigDecimal;
import java.util.Collection;
import java.util.Date;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

@XmlRootElement(name = "result")
public class MarshallableObj {
	@XmlTransient
	private int transientProp;
	private String name;
	private int age;

	@XMLFormat("#0.00")
	private BigDecimal valor;

	@XMLFormat("dd/MM/yyyy HH:mm:ss")
	private Date dt;

	@XmlElementWrapper(name = "elems")
	@XmlElement(name = "item")
	private Collection lst;

	private SubObj subobj;

	public void setLst(Collection lst) {
		this.lst = lst;
	}

	public int getTransientProp() {
		return transientProp;
	}

	public void setTransientProp(int transientProp) {
		this.transientProp = transientProp;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public BigDecimal getValor() {
		return valor;
	}

	public void setValor(BigDecimal valor) {
		this.valor = valor;
	}

	public Date getDt() {
		return dt;
	}

	public void setDt(Date dt) {
		this.dt = dt;
	}

	public Collection getLst() {
		return lst;
	}

	public void setSubobj(SubObj subobj) {
		this.subobj = subobj;
	}
}
